#ifndef __BC26_H
#define	__BC26_H


#include "main.h"

void BC26_Power(void);
void BC26_ATI_Status(void);


uint8_t BC26_Request_ICCID(void);
uint8_t BC26_Request_IMEI(void);
uint8_t BC26_Active_Net(void);
uint8_t Check_BC26_Net_Status(void);
void BC26_Check_Band(void);
uint8_t BC26_Check_CESQ(void);
int BC26_Register_Net_Status(void);
void BC26_PDPACT(void);

void BC26_CFUN(void);
uint8_t BC26_CSCON(void);
#if 1
#define 	SeverIpAddress 		"157.255.51.150"
#define 	UDPServerPort 	    "10000"
#else
#define 	SeverIpAddress 		"114.116.200.206"
#define 	ServerPort 			"8893"
#define 	UDPServerPort 	    "30913"
#endif
#define		NBLocalPort			"9983"
#define		TCP_Connection		1
#define		UDP_Connection		0

#define		BC26_DisableSleepMode		0
#define		BC26_EnableSleepMode		1

#define		ReceiveUdpDataMaxLen		90
int8_t 		CreatSocket(uint8_t type,uint8_t	socketid,uint8_t*serveriP,uint8_t*serverport,uint8_t*localport);


uint8_t		CloseSocket(uint8_t	socketid);

uint8_t BC26_COPS(void);
uint8_t		BC26_ConfigSleepMode(uint8_t		mode);
int8_t		BC26_IntialAndCreatSocket(void);
void 		BC26_PowerStart(void);
uint8_t   BC26_PowerStartAndSleep(void);

uint8_t 		BC26_QCSEARFCN(void);
uint8_t 		BC26_QENG(void);
void Set_BC26_QATWAKEUP(void);
uint8_t  CHeck_BC26_Wakeup_Sleep_Success(void);


#endif 
